<template>
	<view class="main">
		<view :style="'padding-top:'+(demo.height+demo.top+10)+'px'">
			<head1 class="nav_top"
				:style="'height:' +  demo.height + 'px;' + 'padding-top:' + demo.top + 'px;padding-bottom:10px'"
				:nav="title">
			</head1>
		</view>
		<view class="index_line"></view>
			<view class="form_main">
				<form action="" >
					<view class="list">
						<view class="tit"><text style="color: red;">*</text>咨询标题</view>
						<input type="text" value="" placeholder="请输入标题"/>
						<view class="formline"></view>
					</view>
					<view class="list">
						<view class="tit">咨询内容</view>
						<textarea value="" placeholder="请输入你想要的咨询内容" />
					</view>
					<button class="btn">提交</button>
				</form>
			</view>
	</view>
</template>

<script>
	import head1 from '../../common/head/head'
	export default {
		components: {
			head1
		},
		data() {
			return {
				title: '发布咨询',
				demo: {
					top: '',
					height: ''
				}
			}
		},
		created() {
			const demo = uni.getMenuButtonBoundingClientRect()
			this.demo.top = demo.top
			this.demo.height = demo.height
		},
		methods: {

		}
	}
</script>

<style lang="scss" scoped>
	.main {
		position: fixed;
		top: 0;
		z-index: 999;
		height: 100%;
		width: 100%;
		.form_main{
			background: #ffffff;
			padding: 40rpx 40rpx 0;
			box-sizing: border-box;
			width: 100%;
			height: 100%;
			form{
				display: flex;
				width: 100%;
				height: 100%;
				.list{
					margin-bottom: 72rpx;
					.tit{
						font-size: 28rpx;
						font-family: PingFang SC, PingFang SC-Medium;
						font-weight: 500;
						text-align: left;
						color: #333333;
						line-height: 36rpx;
						margin-bottom: 20rpx;
					}
					textarea{
					width: 664rpx;
					padding: 28rpx 14rpx;
					box-sizing: border-box;
					height: 412rpx;
					background: #f4f4f4;
					border-radius: 6rpx;
						
					}
					.formline{
						width: 670rpx;
						height: 2rpx;
						background: #e5e5e5;
						margin-top: 10rpx;
					}
				}
				.btn{
					
					width: 600rpx;
					height: 88rpx;
					background: #5cd1ce;
					border-radius: 44rpx;
					margin: 166rpx auto 0px;
					font-size: 34rpx;
					font-family: PingFang SC, PingFang SC-Medium;
					font-weight: 500;
					text-align: center;
					color: #ffffff;
				}
			}
		}
	}
</style>
